package rmi.eventing.types;

import java.io.Serializable;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public abstract class Event implements Serializable{
	/**
	 * Event maintype. Will be extended by all other events
	 */
	private static final long serialVersionUID = 8663582755438756427L;
	protected String ID; 
	protected String type;
	protected long timestamp;
	protected static int idCounter=0;
	public Event(){
		idCounter++;
		Calendar calendar = Calendar.getInstance();
		timestamp = calendar.getTimeInMillis();	
	}
	public long getTimestamp(){
		return this.timestamp;
	}
	public String getType(){
		return this.type;
	}
	public String getID(){
		return ID;
	}
	public String toString(){
		
		return "";
	}
}
